package cn.mineserv.video.videoordersystem.controller;

import cn.mineserv.video.videoordersystem.model.Comment;
import cn.mineserv.video.videoordersystem.model.Media;
import cn.mineserv.video.videoordersystem.model.User;
import cn.mineserv.video.videoordersystem.service.CommentService;
import cn.mineserv.video.videoordersystem.service.MediaService;
import cn.mineserv.video.videoordersystem.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

/**
 * @author 爱吃蛋白的丶圆周率
 * @company 圆周率有限公司
 */
@Controller
public class HomepageController {
    @GetMapping("/homepage")
    public String homepage(){
        return "index";
    }

    @GetMapping("/")
    public String noneJump(){
        return "redirect:/homepage";
    }

    @GetMapping("/index")
    public String index(){
        return "redirect:/homepage";
    }


    /*@GetMapping("/{path}/{page}")
    public String jump(@PathVariable("path") String path, @PathVariable("page") String page){
        System.out.println("path = " + path);
        System.out.println("page = " + page);
        return path+"/"+page;
    }*/
}
